﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<Defect_Tracking_System.Models.LookupsModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lookups
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<!--  start page-heading -->
<div id="page-heading"><h1>All Lookups</h1></div>
<!-- end page-heading -->

<%: Html.HiddenFor(m => m.ProjectId) %>
<table border="0" cellpadding="0" cellspacing="0" id="content-table" width="100%">
<tbody>
<tr>
    <th rowspan="3" class="sized"><img src="../../Content/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
    <th class="topleft"></th>
    <td id="tbl-border-top">&nbsp;</td>
    <th class="topright"></th>
    <th rowspan="3" class="sized"><img src="../../Content/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
    <td id="tbl-border-left"></td>
    <td>
        <!--  start content-table-inner -->
        <div id="content-table-inner">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
	    <tbody>
        <tr valign="top">
	        <td>	

            <div id="users-contain" class="ui-widget" style="width:500px">
                <div id="tabs">
	                <ul>
		                <li><a href="#tabs-1">Defect Type</a></li>
		                <li><a href="#tabs-2">Defect Status</a></li>
		                <li><a href="#tabs-3">Defect Priority</a></li>
                        <li><a href="#tabs-4">Project Version</a></li>
	                </ul>

	                <div id="tabs-1">
		                <table class="ui-widget ui-widget-content" Type="Type">
		                <% foreach (var obj in Model.DefectTypes)
                            { %>
                            <tr>
                                <td style="width:85%"><%: obj %></td>
                                <td><span class="btnDelete" Type="Type" Value="<%: obj %>">Delete</span></td>
                            </tr>
                        <%} %>
	                    </table>
	                </div>

	                <div id="tabs-2">
		                <table class="ui-widget ui-widget-content" Type="Status">
			                <% foreach (var obj in Model.DefectStatuses)
                                { %>
                                <tr>
                                    <td style="width:85%"><%: obj %></td>
                                    <td><span class="btnDelete" Type="Status" Value="<%: obj %>">Delete</span></td>
                                </tr>
                            <%} %>
	                    </table>
	                </div>

	                <div id="tabs-3">
		                <table class="ui-widget ui-widget-content" Type="Priority">
			                <% foreach (var obj in Model.DefectPriorities)
                                { %>
                                <tr>
                                    <td style="width:85%"><%: obj %></td>
                                    <td><span class="btnDelete" Type="Priority" Value="<%: obj %>">Delete</span></td>
                                </tr>
                            <%} %>
	                    </table>
	                </div>

                    <div id="tabs-4">
                        <table class="ui-widget ui-widget-content" Type="Version">
			                <% foreach (var obj in Model.ProjectVersions)
                                { %>
                                <tr>
                                    <td style="width:85%"><%: obj %></td>
                                    <td><span class="btnDelete" Type="Version" Value="<%: obj %>">Delete</span></td>
                                </tr>
                            <%} %>
	                    </table>
                    </div>
                </div> 
                <br />
                <button id="create-lookups">Create lookups</button>
            </div>

        </td>
            <td>
            <div class="margin-padding">
	        <!--  start related-activities -->
	        <div id="related-activities">
		
		        <!--  start related-act-top -->
		        <div id="related-act-top">
		        <img height="43" width="271" alt="" src="/Content/images/shared/Helper.png" />
		        </div>
		        <!-- end related-act-top -->
		
		        <!--  start related-act-bottom -->
		        <div id="related-act-bottom">
		
			        <!--  start related-act-inner -->
			        <div id="related-act-inner">
			
				        <div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_plus.gif"></a></div>
				        <div class="right">
					        <h5>Add New Project</h5>
					        Manager all projects. You add new project to ...
					        <ul class="greyarrow">
						        <li><a href="/Help?Url=/Content/Help/ProjectGuide.html-AddProject">Click here to visit</a></li>
					        </ul>
				        </div>
				
				        <div class="clear"></div>
				        <div class="lines-dotted-short"></div>
				
				        <div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_minus.gif"></a></div>
				        <div class="right">
					        <h5>Change Project Member</h5>
					        Manager all projecst.You can add or remove member ...
					        <ul class="greyarrow">
						        <li><a href="/Help?Url=/Content/Help/ProjectGuide.html-ChangeProjectMember">Click here to visit</a> </li>
					        </ul>
				        </div>
				
				        <div class="clear"></div>
				        <div class="lines-dotted-short"></div>
				
				        <div class="left"><a href=""><img height="21" width="21" alt="" src="/Content/images/forms/icon_edit.gif"></a></div>
				        <div class="right">
					        <h5>View All Project</h5>
					        Manager all projects. You can view all project ...
					        <ul class="greyarrow"> 
						        <li><a href="/Help?Url=/Content/Help/ProjectGuide.html-ViewAllProject">Click here to visit</a> </li>
					        </ul>
				        </div>
				        <div class="clear"></div>
				
			        </div>
			        <!-- end related-act-inner -->
			        <div class="clear"></div>
		
		        </div>
		        <!-- end related-act-bottom -->
	
	        </div>
	        <!-- end related-activities -->
            </div>
    </td>
        </tr>
        <tr>
            <td><img height="1" width="695" alt="blank" src="/Content/images/shared/blank.gif"></td>
            <td></td>
        </tr>
        </tbody>
        </table>
 
        <div class="clear"></div>

        </div>
        <!--  end content-table-inner  -->
    </td>
    <td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</tbody>
</table>

<div class="clear">&nbsp;</div>

<div id="dialog-confirm" title="Delete lookups">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Are you sure?</p>
</div>
<div id="dialog-form" title="Add Project Lookups">
	<p class="validateTips" style="color:Red">All form fields are required.</p>
	<fieldset>
        <table>
            <tr>
                <td style="width:25%">
                    <strong>Type</strong>
                </td>
                <td>
                    <select name="types" id="types" class="styledselect_form_1">
                        <option value="Type" selected="selected">Defect Type</option>
                        <option value="Status">Defect Status</option>
                        <option value="Priority">Defect Priority</option>
                        <option value="Version">Project Version</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td>
		            <strong>Value</strong>
                </td>
                <td>
                    <input type="text" name="values" id="values" value="" class="text ui-widget-content ui-corner-all inp-form" />
                </td>
            </tr>
        </table>	   
	</fieldset>
</div>
<div id="dialog-message" title="Project Lookups">
	<p>
		<span id="modal-msg"></span>
	</p>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Fotter" runat="server">
<img id="loading" src="/Content/images/shared/loading51.gif" width="100" height="100" style="z-index: 3333; display: none; position:absolute" />
<link href="/Content/css/Dialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Scripts/Lookups.js"></script>
</asp:Content>
